package com.example.fufu.cotroller;

import com.example.fufu.common.R;
import com.example.fufu.modle.SendRequest;
import com.example.fufu.service.UserServeice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/")
public class UserCotrller {
    @Autowired
    private UserServeice userServeice;


    /**
     * 测试发送消息
     * @param sendRequest
     * @return
     */
    @RequestMapping("/sendTest")
    public R send(SendRequest sendRequest) {
        return userServeice.wechatPush();
    }
}
